package lesson17.car;

public class SportCar extends Car {

	boolean isCabriolet;
	private int price;
	void switcTurbo()
	{
		System.out.println("Turbo on");
		super.accelerate(currentSpeed*2);
	}
	SportCar()
	{
		super(320);
	}
	@Override  
	 protected void accelerate(double speed)
	 {
		 super.accelerate(speed);
		 if(currentSpeed >= 150)
			 switcTurbo();
	 }
}
